#define N 15
#include<stdlib.h>

int main()
{
    srand(time(NULL));
    int a[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
    int n=sizeof(a)/sizeof(a[0]);

    int i,k,t;
    for(i=0;i<n;i++)
    {
        k=rand()%(n-i)+i;
       if(i!=k){t=a[i];a[i]=a[k];a[k]=t;}
    }
    for(i=0;i<n;i++)
        printf("%d ",a[i]);
    printf("\n");


    return 0;
}
